package com.hejing.cloud.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

/**
 * ClassName: FlowLimitService
 * Package: com.hejing.cloud.service
 * Description:
 *
 * @Author: HeJing
 * @Create: 2024-08-06 22:54
 * @Version: 1.0
 */
@Service
public class FlowLimitService
{
    /**
     * SentinelResource 是一个流量防卫组件注解，
     * 用于指定防护资源，对配置的资源进行流量控制、熔断降级等功能。
     */
    @SentinelResource(value = "common")
    public void common() {
        System.out.println("------FlowLimitService come in");
    }
}

























